home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snip9611.zip / NUMCNVRT.H < prev    next >
C/C++ Source or Header  |  1996-11-24  |  2KB  |  61 lines

  1. /* +++Date last modified: 02-Nov-1995 */
  2.  
  3. /*
  4. **  NUMCNVRT.H - Header file for SNIPPETS numerical <=> string conversions
  5. */
  6.  
  7. #ifndef NUMCNVRT__H
  8. #define NUMCNVRT__H
  9.  
  10. #include <stddef.h>     /* For size_t     */
  11. #include "sniptype.h"
  12. #include "pi.h"
  13. #include "round.h"
  14.  
  15. #define R_ERROR -2                              /* EVAL.C Range error   */
  16.  
  17. /*
  18. **  Callable library functions begin here
  19. */
  20.  
  21. char  * base_convert(const char *in, char *out,
  22.             size_t len, int rin, int rout);           /* Bascnvrt.C     */
  23. char  * comma_float(double num, char *buf, int dec);  /* Commaflt.C     */
  24. size_t  commafmt(char *buf, int bufsize, long N);     /* Commafmt.C     */
  25. char  * eng(double value, int places);                /* Eng.C          */
  26. int     evaluate(char *line, double *val);            /* Eval.C         */
  27. char  * fmt_money(double amt);                        /* Fmtmoney.C     */
  28. long    hexorint(const char *string);                 /* Hexorint.C     */
  29.  
  30. char  * ltostr(long num, char *string,
  31.             size_t max_chars, unsigned base);       /* Ltostr.C       */
  32.  
  33. char  * ordinal_text(int number);                     /* Ord_Text.C     */
  34. int     scanfrac (const char buf[], double *f);       /* Scanfrac.C     */
  35.  
  36. unsigned int hstr_i(char *cptr);                      /* Hstr_I.C       */
  37.  
  38. #if defined(__ZTC__) && !defined(__SC__)
  39.  char * ltoa(long val, char *buf, int base);          /* Ltoa.C         */
  40. #endif
  41.  
  42.  
  43. /*
  44. **  File: STR27SEG.C
  45. */
  46.  
  47. struct Seg7disp {
  48.       unsigned seg_a : 1;
  49.       unsigned seg_b : 1;
  50.       unsigned seg_c : 1;
  51.       unsigned seg_d : 1;
  52.       unsigned seg_e : 1;
  53.       unsigned seg_f : 1;
  54.       unsigned seg_g : 1;
  55. };
  56.  
  57. char *str27seg(char *string);
  58.  
  59.  
  60. #endif /* NUMCNVRT__H */
  61.